<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>9.27作业</title>
	<script>
		   //输出高的成绩，并且求出它们的差
		   var score=Number(prompt('请输入您的成绩'));
		   var score1=Number(prompt('请输入您的成绩'));
		   if (score>100||score<0,score1>100||score1<0) {
              console.log('您输入错误！！');
		   }else if (score>score1) {
		   	   console.log(score);
		   	   console.log(score-score1);
		   }else if(score<score1) {
		   	   console.log(score1);
		   	   console.log(score1-score);
		   }

	</script>
</head>
<body>
	
</body>
</html>